#!/usr/bin/python
#-*-coding:utf-8-*-

from distutils.core import setup
import py2exe

setup(
    version = "1.5", #版本号
    description = u"Python服务器测试工具", #描述
    name = "pyTools", #程序名
    zipfile=None, #不生成library.zip文件
    windows=['pyTools.py'], #需要打包成windows的脚本
    options={
    "py2exe":
        {
         "compressed":1, #创建压缩的zip文件,压缩比为3:1
         "optimize":0, #优化等级,0表示不优化(generate.pyc),1表示普通优化(like python -O),2表示额外优化(like python -OO)
         "unbuffered":True, #使用未缓冲的二进制stdout和stderr
         "bundle_files":1, #所有文件打包成一个exe文件,可选项1、2、3
         "dist_dir":"./pyTools_v1.5", #设置生成可执行文件的路径,默认当前文件下的ClientOnline文件夹
         "includes":[], #要引入的模块名称列表
         "dll_excludes":["w9xpopen.dll","MSVCP90.dll","OLEAUT32.dll","USER32.dll","SHELL32.dll","ole32.dll"
                         "COMDLG32.dll","WSOCK32.dll","COMCTL32.dll","ADVAPI32.dll","WS2_32.dll",
                         "WINSPOOL.DRV","GDI32.dll","WINMM.dll","KERNEL32.dll","RPCRT4.dll"] #要排除的dll列表的dll文件
        }
    }
)
